package com.topfinance.cnaps2.ebo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_SYS_PARAM_CTRL")
public class SysParamCtrlEbo implements java.io.Serializable {

	private Integer ctrlId;
	private String catg;
	private String type;
	private String code;
	private String name;

	public SysParamCtrlEbo() {
	}

	public SysParamCtrlEbo(Integer ctrlId) {
		this.ctrlId = ctrlId;
	}

	@Id
	@Column(name = "CTRL_ID", unique = true, nullable = false)
	@SequenceGenerator(name = "SYS_PARAM_CTRL_SEQ_GEN", sequenceName = "S_SYS_PARAM_CTRL", initialValue = 1000, allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SYS_PARAM_CTRL_SEQ_GEN")
	public Integer getCtrlId() {
		return ctrlId;
	}
	public void setCtrlId(Integer ctrlId) {
		this.ctrlId = ctrlId;
	}
	
	@Column(name = "PARAM_CATG")
	public String getCatg() {
		return catg;
	}

	public void setCatg(String catg) {
		this.catg = catg;
	}
	
	@Column(name = "PARAM_TYPE")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "PARAM_CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "PARAM_NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
